package mest.service.hws;

import mest.entity.bomsave_manytomany;
import mest.entity.plan_productjob_saleout;
import mest.entity.plan_productjob_takematerial;

import java.util.List;
import java.util.Map;

public interface BomSaveManytomanyService {


    int deleteByPrimaryKey(String theirDb,Integer id);

    int insert(String theirDb,List<bomsave_manytomany> bomSaveManytomany);

    int insertSelective(String theirDb,bomsave_manytomany record);

    List<bomsave_manytomany> selectByPrimaryKey(String theirDb,Integer id);

    int selectPrimarycount(String theirDb,Integer id);

    int updateByPrimaryKeySelective(String theirDb,bomsave_manytomany record);

    int updateByPrimaryKey(String theirDb,bomsave_manytomany record);

    /**
     * 出仓/入仓都要用的查询
     * @param poId
     * @return
     */
    List<Map> selectAllModel(String theirDb,Integer poId);



    /**
     * 出仓/入仓都要用的查询3 (更多数据) 产品
     * @param poId
     * @return
     */
    List<plan_productjob_saleout> selectAllModel2_saleout(String theirDb,Integer poId);




    /**
     * 出仓/入仓都要用的查询3 (更多数据) 材料
     * @param poId
     * @return
     */
    List<plan_productjob_takematerial> selectAllModel3_takeMaterial(String theirDb,Integer poId);

}

